1
general::
Phrase(s): kick a habit [and] kick the habit; shake the habit; shake a habit
to break a habit. • It’s hard to kick a habit, but it can be done. I stopped biting my nails. • I used to drink coffee every morning, but I kicked the habit.
McGrawhill's American Idioms And Phrasal Verbs
2
general::
Also, kick it; kick the habit. Overcome or give up habitual use, especially of narcotics. For example, Smoking is addictive; it's not easy to kick, or If he doesn't kick the habit, he may not make it through school. This idiom uses kick in the sense of "get rid of." [First half of 1900s]
American Heritage Idioms